package org.jground.zk.zulX;

import org.jground.zk.util.ZKUtils;
import org.zkoss.zk.ui.Component;
import org.zkoss.zul.Vbox;

public class VboxX extends Vbox {

    public VboxX(Component... components) {
        for (Component component : components) {
            component.setParent(this);
        }
    }
    
    public void add(Component... components){
        for (Component component : components) {
            component.setParent(this);
        }
    }

    public void set(Component... components){
        removeAll();
        add(components);
    }

    public void removeAll(){
        ZKUtils.removeAllChildren(this);
     }

}
